package com.yuhs.zixing.study.design.pattern.dp002.structural.s003.decorator.d002;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/1 9:22 PM
 */
public class Father002 {
    public static void main(String[] args) {
        //把成绩单拿过来

        //原装的成绩单
        final FouthGradeSchoolReport002 sr = new FouthGradeSchoolReport002();

        //加了最高分说明的成绩单
        final HighScoreDecorator002 high = new HighScoreDecorator002(sr);

        //又加了成绩排名的说明
        final SortDecorator002 decorator002 = new SortDecorator002(high);
        //看成绩单
        decorator002.report();
        //然后老爸一看，很开心，就签名了
        decorator002.sign("老三");  //我叫小三，老爸当然叫老三
    }
}
